some parts moved into header
updated readme