bug fixes and added compiled doc