Code

Split off implementation notes into separate file in doc directory. Added