Added installation procedure. Also fixed some small bugs.